<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    'use strict'
    var now = new Date();
    now.getFullYear();//年
    now.getMonth();//月
    now.getTime();//时间戳
    now.getMinutes();//分
    now.getSeconds();//秒
    now.getDay();//星期几

</script>
<body>

</body>
</html>